home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / spiderweb / tools / Makefile < prev    next >
Makefile  |  1988-07-17  |  1KB  |  43 lines

  1. #
  2. DVI=dvi
  3. CFLAGS=-DDEBUG -g -DSTAT
  4.  
  5. # Change the following three directories to match your installation
  6.  
  7. WEBSOURCE=$(HOME)/src/web#     # root of the WEB source distribution
  8. DEST=/usr/charybdis/ada/bin#     # place where the executables go
  9. MACROS=$(HOME)/tex/macros#     # place where the macros go
  10.  
  11. MASTER=$(WEBSOURCE)/master#     # master source directory
  12.  
  13. CTANGLE=ceetangle -I$(MASTER)
  14. CWEAVE=ceeweave -I$(MASTER)
  15. AWKTANGLE=ktangle -I$(MASTER)
  16.  
  17. depend: depend.o $(MASTER)/pathopen.o
  18.     cc $(CFLAGS) -o $(DEST)/depend depend.o $(MASTER)/pathopen.o
  19.  
  20. depend.c: depend.web
  21.     $(CTANGLE) depend
  22.  
  23. $(MASTER)/pathopen.c: $(MASTER)/pathopen.web # no change file
  24.     $(CTANGLE) $(MASTER)/pathopen 
  25.     mv pathopen.h $(MASTER)
  26.  
  27. $(MASTER)/pathopen.o: $(MASTER)/pathopen.c
  28.     cc $(CFLAGS) -c $(MASTER)/pathopen.c
  29.     mv pathopen.o $(MASTER)
  30.  
  31.  
  32.  
  33. # This cleanup applies to every language
  34.  
  35. clean:
  36.     if [ -f WebMakefile ]; then exit 1; fi # don't clean the master!
  37.     if [ -f spiderman.tex ]; then exit 1; fi # don't clean the manual!
  38. #    -rm -f tangle.* weave.* common.* # remove links that may be obsolete
  39. #    -rm -f *.unsorted *.list grammar.web outtoks.web scraps.web 
  40. #    -rm -f cycle.test spider.slog
  41.     -rm -f *.c *.o *.tex *.toc *.dvi *.log *.makelog *~ *.wlog *.printlog
  42.  
  43.